package com.zhanggm.springcloud.car.controller;


import com.zhanggm.springcloud.car.service.ICarRepairShopService;
import com.zhanggm.springcloud.common.entity.CarRepairShop;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 汽车修理厂表 前端控制器
 * </p>
 *
 * @author zhanggm
 * @since 2020-12-12
 */
@RestController
@RequestMapping("/car/shop")
public class CarRepairShopController {

    @Autowired
    private ICarRepairShopService iCarRepairShopService;

    @GetMapping("getById")
    public CarRepairShop getById(@RequestParam("id") Integer id){
        return iCarRepairShopService.getById(id);
    }
}
